const loginPage = [
  {
    path: '/login',
    name: 'login',
    component: () =>
      import(/* webpackChunkName: "Login" */ '../pages/login/Login')
  },
  {
    path: '/register',
    name: 'register',
    component: () =>
      import(/* webpackChunkName: "Login" */ '../pages/register/Register')
  }
]
const mainPage = [
  {
    path: "/",
    redirect: "/main",
  },
  {//酒店列表
    path: '/BigPage',
    name: 'BigPage',
    component: () =>
      import(/* webpacdhdkChunkName: "BigPage" */ '../pages/bigPage/BigPage')
  },
  {//酒店信息
    path: '/hotel_lhj',
    name: 'hotel_lhj',
    component: () =>
      import(/* webpackChunkName: "HotelVue_lhj" */ '../pages/hotel/HotelVue_lhj')
  },
  {//房间信息
    path: '/room_lhj',
    name: 'room_lhj',
    component: () =>
      import(/* webpackChunkName: "RoomPage_lhj" */ '../pages/hotel/RoomVue_lhj')
  },
  {//个人中心
    path: 'personalCenter',
    name: 'personalCenter',
    component: () =>
      import(/* webpackChunkName: "PersonalCenter" */ '../pages/DomConsumer/PersonalCenter/PersonalCenter')
  },
  {//修改个人信息
    path: 'changeInformation',
    name: 'changeInformation',
    component: () =>
      import(/* webpackChunkName: "ChengeInformation" */ '../pages/DomConsumer/ChangeInformation')
  },
  {//查看订单
    path: 'lookOrder',
    name: 'lookOrder',
    component: () =>
      import(/* webpackChunkName: "LookOrder" */ '../pages/DomConsumer/lookOrder')
  },
  {
    path: "mapSet",
    name: "mapSet",
    component: () =>
      import(/* webpackChunkName: "NotFound" */ "../components/mapSet.vue"),
  },
  {
    path: "mapGuide",
    name: "mapGuide",
    component: () =>
      import(/* webpackChunkName: "NotFound" */ "../components/mapGuide.vue"),
  },
  {
    path: "mapGuideChoose",
    name: "mapGuideChoose",
    component: () =>
      import(
        /* webpackChunkName: "NotFound" */ "../components/mapGuideChoose.vue"
      ),
  },
  // {
  //   path: '/personalCenter',
  //   name: 'personalCenter',
  //   component: () =>
  //     import(/* webpackChunkName: "PersonalCenter" */ '../pages/DomConsumer/PersonalCenter/PersonalCenter')
  // },
  {
    path: '/main',
    name: 'main',
    component: () =>
      import(/* webpackChunkName: "Main" */ '../pages/main/Main'),
    children: [
      {
        path: 'role',
        name: 'role',
        component: () =>
          import(
              /* webpackChunkName: "Second" */ '../pages/autopages/RoleVue'
          )
      },
      {
        path: 'changeInformation',
        name: 'changeInformation',
        component: () =>
          import(/* webpackChunkName: "ChengeInformation" */ '../pages/DomConsumer/ChangeInformation')
      },
      {
        path: 'lookOrder',
        name: 'lookOrder',
        component: () =>
          import(/* webpackChunkName: "LookOrder" */ '../pages/DomConsumer/lookOrder')
      },
      {
        path: 'personalCenter',
        name: 'personalCenter',
        component: () =>
          import(/* webpackChunkName: "PersonalCenter" */ '../pages/DomConsumer/PersonalCenter/PersonalCenter')
      },
      {
        path: 'comments',
        name: 'comments',
        component: () =>
          import(
              /* webpackChunkName: "First" */ '../pages/autopages/CommentsVue'
          )
      },
      {
        path: "mapPLJX",
        name: "mapPLJX",
        component: () =>
          import(/* webpackChunkName: "NotFound" */ "../components/mapPLJX.vue"),
      },
      {
        path: "mapSGJX",
        name: "mapSGJX",
        component: () =>
          import(/* webpackChunkName: "NotFound" */ "../components/mapSGJX.vue"),
      },
      
      {
        path: 'user',
        name: 'user',
        component: () =>
          import(/* webpackChunkName: "UserVue" */ '../pages/autopages/UserVue')
      },
      {
        path: 'bed',
        name: 'bed',
        component: () =>
          import(/* webpackChunkName: "BedVue" */ '../pages/autopages/BedVue')
      },
      {
        path: 'hotel',
        name: 'hotel',
        component: () =>
          import(/* webpackChunkName: "HotelVue" */ '../pages/autopages/HotelVue')
      },
      {
        path: 'img',
        name: 'img',
        component: () =>
          import(/* webpackChunkName: "ImgVue" */ '../pages/autopages/ImgVue')
      },
      {
        path: 'logs',
        name: 'logs',
        component: () =>
          import(/* webpackChunkName: "LogsVue" */ '../pages/autopages/LogsVue')
      },
      {
        path: 'orders',
        name: 'orders',
        component: () =>
          import(/* webpackChunkName: "OrdersVue" */ '../pages/autopages/OrdersVue')
      },
      {
        path: 'room',
        name: 'room',
        component: () =>
          import(/* webpackChunkName: "RoomVue" */ '../pages/autopages/RoomVue')
      },
    ]
  },
];
const errorPage = [
  {
    path: "/notFound",
    name: "notFound",
    component: () =>
      import(/* webpackChunkName: "NotFound" */ "../pages/error/NotFound"),
  },
  {
    path: "/forbidden",
    name: "forbidden",
    component: () =>
      import(/* webpackChunkName: "Forbidden" */ "../pages/error/Forbidden"),
  },
  {
    path: "/badGateway",
    name: "badGateway",
    component: () =>
      import(/* webpackChunkName: "BadGateway" */ "../pages/error/BadGateway"),
  },
  // {
  //   path: "*",
  //   redirect: "/notFound",
  // },
];
export default [...loginPage, ...mainPage, ...errorPage];
